# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=python-dominate
pkgver=2.7.0
pkgrel=2
pkgdesc="A Python library for creating and manipulating HTML documents using an elegant DOM API"
url="https://github.com/Knio/dominate"
license=('LGPL')
arch=('any')
depends=('python')
makedepends=('python-setuptools')
checkdepends=('python-pytest-runner')
source=("$pkgname-$pkgver.tar.gz::https://github.com/Knio/dominate/archive/$pkgver.tar.gz")
sha512sums=('4266d027aafe336f497b396e430daca9333f06a2599e56dca9a9f918ec21451cfc6ebfcc96b53e37c66e94223fdcb11d9552e9426728e3fbfeb8c8d5e010312c')

build() {
  cd dominate-$pkgver
  python setup.py build
}

check() {
  cd dominate-$pkgver
  python setup.py pytest
}

package() {
  cd dominate-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1
}
